<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--action设置提交地址
value设置值  maxlength设置最大字符长度 readonly只读
placeholder占位文本-->
<form action="http://www.baidu.com">
    用户名:<input type="text" name="username" value="tom"
               maxlength="5" readonly
               placeholder="请输入用户名"><br>
    密码:<input type="password" name="password" placeholder="请输入密码"><br>
    <!--单选框和多选框必须设置value 否则提交on  checked设置默认选中-->
    性别:<input type="radio" name="gender" value="m">男
    <input type="radio" name="gender" value="w" checked>女<br>
    兴趣爱好:<input type="checkbox" name="hobby" value="cy">抽烟
    <input type="checkbox" name="hobby" value="hj">喝酒
    <input type="checkbox" name="hobby" checked value="tt">烫头<br>
    生日:<input type="date" name="birthday"><br>
    靓照:<input type="file" name="pic"><br>
    所在地:
    <select name="city">
        <option>北京</option>
        <option>上海</option>
        <option selected>广州</option><!--selected设置默认选中-->
    </select><br>
    <input type="submit" value="注册">
    <input type="reset" value="恢复">
    <input type="button" value="按钮">
    <hr>
    <button type="submit">注册</button>
    <button type="reset">重置</button>
    <button type="button">按钮</button>
</form>
</body>
</html>